home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / MPI_Bcast.z / MPI_Bcast
Encoding:
Text File  |  2002-10-03  |  3.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. MMMMPPPPIIII____BBBBCCCCAAAASSSSTTTT((((3333))))                                                      MMMMPPPPIIII____BBBBCCCCAAAASSSSTTTT((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MMMMPPPPIIII____BBBBccccaaaasssstttt - Broadcasts a message from the process with a specified rank
  10.      (called a root) to all other processes of the group
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      C:
  14.  
  15.           #include <mpi.h>
  16.  
  17.           int MPI_Bcast ( _b_u_f_f_e_r, _c_o_u_n_t, _d_a_t_a_t_y_p_e, _r_o_o_t, _c_o_m_m )
  18.           void             *_b_u_f_f_e_r;
  19.           int               _c_o_u_n_t;
  20.           MPI_Datatype      _d_a_t_a_t_y_p_e;
  21.           int               _r_o_o_t;
  22.           MPI_Comm          _c_o_m_m;
  23.  
  24.  
  25.      C++:
  26.  
  27.           #include <mpi.h>
  28.  
  29.           void Intracomm::Bcast(
  30.           void*             _b_u_f_f_e_r,
  31.           int               _c_o_u_n_t,
  32.           const Datatype&   _d_a_t_a_t_y_p_e,
  33.           int               _r_o_o_t) const
  34.  
  35.  
  36.      Fortran:
  37.  
  38.           INCLUDE "mpif.h" (or USE MPI)
  39.  
  40.           <type> BUFFER(*)
  41.           INTEGER _c_o_u_n_t, _d_a_t_a_t_y_p_e, _r_o_o_t, _c_o_m_m,
  42.           _i_e_r_r_o_r
  43.  
  44.           CALL MPI_BCAST(_b_u_f_f_e_r, _c_o_u_n_t, _d_a_t_a_t_y_p_e, _r_o_o_t,
  45.           _c_o_m_m, _i_e_r_r_o_r)
  46.  
  47.  
  48. SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
  49.      This release implements the MPI 1.2 standard, as documented by the MPI
  50.      Forum in the spring 1997 release of _M_P_I:  _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
  51.      _S_t_a_n_d_a_r_d.
  52.  
  53. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  54.      The MMMMPPPPIIII____BBBBccccaaaasssstttt routine broadcasts a message from the process with a
  55.      specified rank (called a root) to all other processes of the group.  This
  56.      routine accepts the following parameters:
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMPPPPIIII____BBBBCCCCAAAASSSSTTTT((((3333))))                                                      MMMMPPPPIIII____BBBBCCCCAAAASSSSTTTT((((3333))))
  71.  
  72.  
  73.  
  74.      _b_u_f_f_e_r         Specifies the starting address of the buffer (choice)
  75.  
  76.      _c_o_u_n_t          Specifies the number of entries in the buffer (integer)
  77.  
  78.      _d_a_t_a_t_y_p_e       Specifies the data type of the buffer (handle)
  79.  
  80.      _r_o_o_t           Specifies the rank of the broadcast root (integer)
  81.  
  82.      _c_o_m_m           Specifies the communicator (handle)
  83.  
  84.      _i_e_r_r_o_r         Specifies the return code value for successful completion,
  85.                     which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the
  86.                     mmmmppppiiiiffff....hhhh file.
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.